package cn.tedu.service.impl;

import cn.tedu.mapper.NovelMapper;
import cn.tedu.pojo.Novel;
import cn.tedu.service.NovelService;
import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.cache.annotation.Cacheable;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NovelServiceImpl implements NovelService {
    @Autowired
    private NovelMapper novelMapper;

    @Override
    public List<Novel> getNovelByUserId(Integer userId) {
        List<Novel> novels = novelMapper.getNovelByUserId(userId);
        return novels;
    }
}
